/*
 * entry.h
 *
 *  Created on: 2015年8月30日
 *      Author: 建宾
 */

#ifndef ENTRY_H_
#define ENTRY_H_

#include <jni.h>

#include "../debug.h"

int native_load_core(JNIEnv *env, jobject self);
jclass native_find_class(JNIEnv* env, jobject self, jstring name);
int native_boot(JNIEnv * env, jobject self);
int native_check(JNIEnv * env, jobject self, jstring path);
jstring native_get_data(JNIEnv * env, jobject self);
void native_setcl(JNIEnv * env, jobject self, jobject cl1, jobject cl2);

jstring native_encrypt(JNIEnv * env, jobject self, jstring s, jstring k);
jstring native_encrypt1(JNIEnv * env, jobject self, jstring s);
jstring native_decrypt(JNIEnv * env, jobject self, jstring s, jstring k);
jstring native_decrypta(JNIEnv * env, jobject self, jstring s);
jstring native_decryptc(JNIEnv * env, jobject self, jstring s);

extern JavaVM		*g_vm;
extern JNIEnv		*g_env;
extern jobject		g_application, g_asset, g_classLoader;
extern const char	*g_dex_path, *g_pkg;

extern unsigned char rawData[44614];

#endif /* ENTRY_H_ */
